<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

<!-- 文件上传第一步： 表单填写  -->
<form action="UploadServlet" method="post" enctype="multipart/form-data">
    用户名<input type="text" name="username"><br/>
  头像<input type="file" name="headimg"><br/>
  <input type="submit"  value="提交">  
</form>

</body>
</html>